package com.ruoyi.web.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 药品库存
 * </p>
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Drugstore implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @TableId(value = "rugstoreId", type = IdType.AUTO)
    private Integer rugstoreId;

    /**
     * 药品名称
     */
    @TableField("drugstoreName")
    private String drugstoreName;

    /**
     * 供货
     */
    @TableField("supplierId")
    private Integer supplierId;

    @TableField("supplierName")
    private String supplierName;

    /**
     * 经办人
     */
    @TableField("skullId")
    private Integer skullId;

    @TableField("skullName")
    private String skullName;
    /**
     * 库房
     */
    @TableField("warehouseId")
    private Integer warehouseId;

    @TableField("warehouseName")
    private String warehouseName;


    /**
     * 计量单位
     */
    private Integer unit;

    private String unitName;

    /**
     * 批发价
     */
    @TableField("tradePrice")
    private Double tradePrice;

    /**
     * 售价
     */
    @TableField("sellingPrice")
    private Double sellingPrice;

    /**
     * 产地
     */
    private Integer area;

    private String areaName;

    /**
     * 类型
     */
    private Integer type;
    private String typeName;

    /**
     * 生成日期
     */
    @TableField("produceDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date produceDate;

    /**
     * 有效期
     */
    @TableField("validDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date validDate;

    /**
     * 数量
     */
    private Integer drugstorenum;

    /**
     * 批号
     */
    private String batch;
}
